package com.pocket.insight.controller.dto;

import com.pocket.insight.entity.Dataset;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 描述：
 *
 * @author shuize
 * @create 2024/11/28
 */
@Data
public class DatasetResultDto {

    private boolean connected;

    // 表字段列表
    private List<Dataset.Field> schema;

    private List<List<Object>> data = new ArrayList<>();

    private List<Map<String, Object>> mapData = null;

    public List<List<Object>> fetchData() {
        return this.data;
    }

}
